Skip to content

Conversation

AleksandrsStukalovs
Copy link

No description provided.

}

func isPowerOfTwo(n int) bool {
log := math.Log2(float64(n))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please implement this function without using math package (you will need a recursion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants